import http from './http'
// 订单
export function getOrderData(params){
  return http.get('/order/daily/total',params)
}

// 退款订单
export function orderRefundData(params){
  return http.get('/order/refund',params)
}

// 单日商品销量
export function getGoodsData(params){
  return http.get('/order/daily/saleQuery',params)
}
// 订单量导出
export function getOrderExport(params){
  return http.get('/order/daily/export',params,'blob')
}
// 单日商品销量导出
export function getGoodsExport(params){
  return http.get('/order/daily/sale',params,'blob')
}
// 发送
export function getSendData(params){
  return http.post('/sms/send',params)
}
// 导出取件码
export function exportCode(params){
  return http.get('/order/daily/print',params,'blob')
}
// 商铺列表
export function getStoreData(params){
  return http.get('/store/list',params)
}
// 打印
export function printCode(params){
  return http.get('/order/daily/printTag',params)
}

// 保温柜列表
export function getCabinetData(params){
  return http.get('/cabinet/list',params)
}

// 用户列表
export function getUserList(params){
  return http.get('/sysUser/list',params)
}

// 新增用户
export function addUserData(params){
  return http.post('/sysUser/addUser',params)
}

// 修改密码
export function updatePasswordData(params){
  return http.get('/sysUser/changePwd',params)
}

// 反馈列表
export function getFeedbackList(params){
  return http.get('/feedback/list',params)
}

// 商品列表
export function getGoodsList(params){
  return http.get('/sys/goods/list',params)
}
// addGoods
export function addGoods(params){
  return http.post('/sys/goods/add',params)
}
// editGoods
export function editGoods(params){
  return http.post('/sys/goods/edit',params)
}

// 拼团商品列表
export function getPtGoodsList(params){
  return http.get('/sys/groupBuying/list',params)
}
// addPtGoods
export function addPtGoods(params){
  return http.post('/sys/groupBuying/add',params)
}
// editPtGoods
export function editPtGoods(params){
  return http.post('/sys/groupBuying/edit',params)
}

// addPtGoodsStag
export function addPtGoodsStag(params){
  return http.post('/sys/groupBuyingInstance/add',params)
}
// editPtGoodsStag
export function editPtGoodsStag(params){
  return http.post('/sys/groupBuyingInstance/edit',params)
}
// 分类列表
export function getCategoryList(params){
  return http.get('/sys/category/list',params)
}

// 拼团列表
export function getPtList(params){
  return http.get('/order/group/list',params)
}

// getMenuListData
export function getMenuListData(params){
  return http.get('/menu/list',params)
}
// api/menu/edit
export function editMenuData(params){
  return http.post('/menu/edit',params)
}

// getCronListData
export function getCronListData(params){
  return http.get('/job/list',params)
}
export function editCronData(params){
  return http.post('/job/edit',params)
}
